import Vue from 'vue'
import Vuex from 'vuex'
import common from './common'
import { getters } from './getters'
Vue.use(Vuex)

// 注册上面引入的各大模块
const store = new Vuex.Store({
  modules: {
    common
  },
  getters // 获取数据并渲染
})

export default store
